package com.ler.yrmall.ware.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ler.yrmall.basic.Form;
import com.ler.yrmall.ware.entity.PurchaseEntity;
import com.ler.yrmall.ware.mapper.PurchaseMapper;
import com.ler.yrmall.ware.service.PurchaseDetailService;
import com.ler.yrmall.ware.service.PurchaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


/**
 * @author leron
 */
@Service
public class PurchaseServiceImpl extends ServiceImpl<PurchaseMapper, PurchaseEntity> implements PurchaseService {

    @Resource
    private PurchaseDetailService purchaseDetailService;

    @Override
    public IPage<PurchaseEntity> find(Form request) {
        return this.page(request.getPage());
    }

}